package com.jiwei.system.vo;

import com.jiwei.system.pojo.ResultPoJo;

/**
 * @title: ResultVO
 * @Author 赖志宇
 * @Description TODO
 * @Date: 2020/8/18
 * @Version 1.0
 */
public class ResultVO implements VO<ResultPoJo> {

    private String statusCode;

    private String message;

    public ResultVO() {
    }

    @Override
    public String toString() {
        return "ResultVO{" +
                "statusCode='" + statusCode + '\'' +
                ", message='" + message + '\'' +
                '}';
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ResultVO(String statusCode, String message) {
        this.statusCode = statusCode;
        this.message = message;
    }

    @Override
    public ResultPoJo changeToPo() {
        return new ResultPoJo(statusCode,message,null);
    }
}
